package com.pocket.demo.business.controller.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pocket.demo.base.api.BaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author zhaozhile
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description = "管理后台 - 用户列表查询 response VO")
@Data
public class UserRespVO extends BaseDO {
    @TableId
    private String userId;

    @Schema(name = "nickName", title = "用户昵称")
    private String nickName;

    @Schema(name = "realName", title = "真实姓名")
    private String realName;

    @Schema(name = "userMail", title = "用户邮箱")
    private String userMail;

    @Schema(name = "userMobile", title = "手机号码")
    private String userMobile;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(name = "userRegTime", title = "注册时间")
    private Date userRegTime;

    @Schema(name = "userRegIp", title = "注册IP")
    private String userRegIp;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(name = "userLastTime", title = "最后登录时间")
    private Date userLastTime;

    @Schema(name = "userLastIp", title = "最后登录IP")
    private String userLastIp;

    @Schema(name = "userMemo", title = "备注")
    private String userMemo;

    @Schema(name = "sex", title = "M(男) or F(女)")
    private String sex;

    @Schema(name = "birthDate", title = "生日")
    private String birthDate;

    @Schema(name = "pic", title = "头像图片路径")
    private String pic;

    @Schema(name = "status", title = "状态 1 正常 0 无效")
    private Integer status;

    @Schema(name = "score", title = "用户积分")
    private Integer score;
}
